package thefirst.controller;

import java.sql.SQLException;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import thefirst.addresscode.model.AddressCodeService;
import thefirst.addresscode.model.AddressCodeVO;

@Controller
public class AddressCodeController {
	@Resource(name="addressCodeServiceImpl")
	private AddressCodeService addressCodeService;
	@RequestMapping("/findAddressByZipcode.do")
	public List<AddressCodeVO> findAddressByZipcode(String address) throws SQLException{
		List<AddressCodeVO> aList=addressCodeService.findAddressByZipcode(address);
		return aList;
	}

}
